package com.shengcheng.service.impl;

import com.shengcheng.entity.BaseCategoryView;
import com.shengcheng.mapper.BaseCategoryViewMapper;
import com.shengcheng.service.BaseCategoryViewService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shengcheng.vo.CategoryVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * VIEW 服务实现类
 * </p>
 *
 * @author bch
 * @since 2024-06-25
 */
@Service
public class BaseCategoryViewServiceImpl extends ServiceImpl<BaseCategoryViewMapper, BaseCategoryView> implements BaseCategoryViewService {

    @Override
    public List<CategoryVo> getAllCategoryList() {
       return baseMapper.getAllCategoryList();
    }

    @Override
    public List<CategoryVo> getCategoryByCategory1Id(Long category1Id) {
        return baseMapper.getCategoryByCategory1Id(category1Id);
    }
}
